// 接口地址配置
export const APIURL = {
  // 会话历史
  getChatHistory: `/basicapi/visual/smart/dev/v2/chat/history`,
  // 会话消息（流式）
  getChatMessage: `/basicapi/visual/smart/dev/v2/chat/ask`,
  // 导航栏Tab
  getNavList: `/basicapi/visual/smart/dev/ai_f10/v2/app`,
  // 面板数据
  getPanel: `/basicapi/visual/smart/dev/ai_f10/v2/panel`,
  // 重置面板
  resetPanel: `/basicapi/visual/smart/dev/ai_f10/v2/panel/reset`,
  // 更新面板标题
  updatePanelTitle: `/basicapi/visual/smart/dev/ai_f10/v2/panel/update_tab`,
  // 推荐问句
  getRecommendQuestion: `/basicapi/visual/smart/dev/ai_f10/v2/question_recommend`,
  // 自定义模块
  getCustomeRender: `/basicapi/visual/smart/dev/app/v2/fix_chart_render`,
  // 点赞/点踩反馈
  feedback: `/basicapi/visual/smart/dev/v2/chat/feedback`,
  // 导航栏Tab排序
  updateNavList: `/basicapi/visual/smart/dev/ai_f10/v2/panel/sort`,
  // 模块排序
  updateSectionSort: `/basicapi/visual/smart/dev/ai_f10/v2/section/sort`,
  // 修改卡片状态
  updateSectionStatus: `/basicapi/visual/smart/dev/ai_f10/v2/section/update_prop`,
  // 插入卡片
  insertSection: `/basicapi/visual/smart/dev/ai_f10/v2/section/insert_from_chat`,
  // 删除卡片
  deleteSection: `/basicapi/visual/smart/dev/ai_f10/v2/section/delete`,
  // 更新卡片
  updateSection: `/basicapi/visual/smart/dev/ai_f10/v2/section/replace_from_chat`,
  // 清除上下文
  resetChat: `/basicapi/visual/smart/dev/v2/chat/new_group_session`,
  // 问财搜索
  iwencaiSearch: '//www.iwencai.com/unifiedwap/result'
}

export const SELECTTYPE: { [key: string]: string } = {
  INDEX_ROW_COL: '你选择的行/列',
  INDEX_OBJ: '你选择的对象',
  SECTION: '你选择的卡片'
}

export const ERRORTYPE: { [key: string]: string } = {
  JS: 'js',
  AJAX: 'ajax',
  RESOURCE: 'resource',
  VUE: 'vue',
  PROMISE: 'promise',
  UNKNOW: 'unknow'
}